package cn.edu.xmu.javaee.productdemoaop.mapper.jpa;

import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


import java.util.List;
@Repository
public interface ProductRepository extends JpaRepository<ProductPojpa, Long> {
    List<ProductPojpa> findByGoodsIdAndIdNot(Long goodsId, Long id);
    List<ProductPojpa> findByNameEquals(String name);

}
